package com.cjx.common.constant;

/**
*@Description 认证用到的常量类
*@Verson v1.0.0
*@Author cjunxian
*@Date
*/
public class AuthConstant {

    /**
     * JWT令牌前缀
     */
    public static String JWT_TOKEN_PREFIX = "Bearer ";

    /**
     * 认证信息Http请求头
     */
    public static String JWT_TOKEN_HEADER = "Authorization";

    /**
     * JWT存储权限属性
     */
    public static String JWT_AUTHORITIES_KEY = "authorities";

    /**
     * Redis缓存权限规则key
     */
    public static String RESOURCE_ROLES_KEY = "auth:resource:roles";

    /**
     * 角色前缀
     */
    public static String ROLE_KEY = "ROLE_";

    /**
     * 登录客户端id
     */
    public static String CLIENT_ID = "cjx-alibaba";

}
